<?php
namespace common\models;

use yii\db\ActiveRecord;
use yii\behaviors\TimestampBehavior;

/**
 * 实名认证表
 * @author ZCY
 */
class ARUserCertificate extends ActiveRecord
{
    
    const SCENARIO_ADD= 'add';
     
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%user_certificate}}';
    }
    
    
    public function behaviors()
    {
        return [
            TimestampBehavior::className(),
        ];
    }
    
    public function scenarios()
    {
        return [
            self::SCENARIO_ADD  => ['uid','real_name','certificate_type','certificate_number','country','provinces','image_id','image_id_hand'],
        ];
    }

}
